package sk.marek.barak.client;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;



public class UserInformation implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2572176548587822133L;
	
	
	private String name;
	private String userID;
	private Date birthDate;
	private List<UserThought> userThoughts;
	
	public UserInformation(){
	}
	public UserInformation(String name, String userID,Date birthDate) {
		super();
		this.name = name;
		this.userID = userID;

		this.birthDate = birthDate;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUserID() {
		return userID;
	}
	public void setUserID(String userID) {
		this.userID = userID;
	}
	public Date getBirthDate() {
		return birthDate;
	}
	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}
	public void addUserThought(UserThought thought){
		if(userThoughts==null){
		userThoughts = new ArrayList<UserThought>();
		}
		userThoughts.add(0,thought);
				
	}
	public List<UserThought> getUserThoughts(){
		return userThoughts;
	}

}
